<?php

namespace Luka\StoreBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Luka\StoreBundle\Entity\Reading
 *
 * @ORM\Table(name="Reading")
 * @ORM\Entity
 */
class Reading
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var string $value
     *
     * @ORM\Column(name="value", type="string", length=255, nullable=false)
     */
    private $value;

    /**
     * @var datetime $date
     *
     * @ORM\Column(name="date", type="datetime", nullable=false)
     */
    private $date;

    /**
     * @var Readingtype
     *
     * @ORM\ManyToOne(targetEntity="Readingtype")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="readingtype_id", referencedColumnName="id")
     * })
     */
    private $readingtype;

    /**
     * @var Object
     *
     * @ORM\ManyToOne(targetEntity="Object")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="object_Id", referencedColumnName="id")
     * })
     */
    private $object;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set value
     *
     * @param string $value
     */
    public function setValue($value)
    {
        $this->value = $value;
    }

    /**
     * Get value
     *
     * @return string 
     */
    public function getValue()
    {
        return $this->value;
    }

    /**
     * Set date
     *
     * @param datetime $date
     */
    public function setDate($date)
    {
        $this->date = $date;
    }

    /**
     * Get date
     *
     * @return datetime 
     */
    public function getDate()
    {
        return $this->date;
    }

    /**
     * Set readingtype
     *
     * @param Luka\StoreBundle\Entity\Readingtype $readingtype
     */
    public function setReadingtype(\Luka\StoreBundle\Entity\Readingtype $readingtype)
    {
        $this->readingtype = $readingtype;
    }

    /**
     * Get readingtype
     *
     * @return Luka\StoreBundle\Entity\Readingtype 
     */
    public function getReadingtype()
    {
        return $this->readingtype;
    }

    /**
     * Set object
     *
     * @param Luka\StoreBundle\Entity\Object $object
     */
    public function setObject(\Luka\StoreBundle\Entity\Object $object)
    {
        $this->object = $object;
    }

    /**
     * Get object
     *
     * @return Luka\StoreBundle\Entity\Object 
     */
    public function getObject()
    {
        return $this->object;
    }
}